Need help converting my VBA code to Google Script